package b2.player
{
	public class RankingInfo
	{
		public var playerId:int;
		public var playerName:String;
		public var tankIndex:int;
		public var basicLevel:int;
		public var strengthenLevel:int;
		public var objectNum:int;
		public var tankId:int;
		public var objectIndex:int;

		public function RankingInfo(rankingXML:XML = null)
		{
			if (rankingXML != null)
			{
				this.playerId = rankingXML.playerId;
				this.playerName = rankingXML.name;
				this.tankIndex = rankingXML.tankIndex;
				this.objectIndex = rankingXML.objectIndex;
				this.basicLevel = rankingXML.basicLevel;
				this.strengthenLevel = rankingXML.strengthenLevel;
				this.objectNum = rankingXML.objectNum;
				this.tankId = parseInt(rankingXML.tankId);
			}
		}
	}
}